package fr.jade.fraclite.deployment;

import java.net.MalformedURLException;
import java.net.URL;

import org.objectweb.fractal.api.control.NameController;
import org.objectweb.fractal.deployment.local.api.IPhysicalPackage;

public class GenericPhysicalPackageComponent implements IPhysicalPackage,
		NameController {

	private String name;
	
	private URL content;

	public URL getContent() {
		return this.content;
	}

	public String getFcName() {
		return this.name;
	}

	public void setFcName(String arg0) {
		this.name = arg0;
		try {
			this.content = new URL("file:" + this.name);
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
	}

}
